<?php
namespace app\admin\validate;

use think\Validate;

class Link extends Validate
{
    protected $rule = [
        'title'  =>  'require|max:30',
        'url'  =>  'require',
    ];
    protected $message  =   [
    'title.require' => '链接名称不能为空',
    'title.max' => '链接名称不超过30位',
    'url.require' => '链接地址不能为空',

];


}